﻿using System;
using System.Configuration;
using System.Collections;
using System.ComponentModel;
using System.Data;     
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Text;                
using System.IO;

namespace VatLid
{
	/// <summary>
	/// The class stores all global variables for the application.
	/// </summary>
	public class Variables
	{		
		//Variables for rewriting
		
		public static string sHome=ConfigurationSettings.AppSettings["sHome"];
        public static string sWebPreview = ConfigurationSettings.AppSettings["sWebPreview"];
        public static string sWebRoot = ConfigurationSettings.AppSettings["sWebRoot"];
        public static string sPathToResourceImage = ConfigurationSettings.AppSettings["pathToResourceImage"];
        public static string sLinkToResource = ConfigurationSettings.AppSettings["linkToResource"];
        public static string sPathToResource = ConfigurationSettings.AppSettings["pathToResource"];
        
        public static string sPathToResourceKTTD = ConfigurationSettings.AppSettings["pathToResourceKTTD"];
        public static string sImageSync = ConfigurationSettings.AppSettings["ImageSync"];

        public static string sWebPhoto = ConfigurationSettings.AppSettings["ImageDBPHOTOView"];
        public static string sPreviewLink = ConfigurationSettings.AppSettings["PreviewLink"];

        public static string ImageLink3 = VatLid.Variables.sWebRoot + "images/viewmag-.png";
        public static string EditAuthen = "<img src='" + VatLid.Variables.sWebRoot + "images/controls.gif' border=0 title='Phân quyền truy cập' WIDTH='24' HEIGHT='24'></img>";
        public static string EditFunction = "<img src='" + VatLid.Variables.sWebRoot + "images/function.gif' border=0 title='Phân quyền chức năng' WIDTH='24' HEIGHT='24'></img>";
        public static string EditModule = "<img src='" + VatLid.Variables.sWebRoot + "images/module.png' border=0 title='Phân quyền trên các mục' WIDTH='24' HEIGHT='24'></img>";
        public static string EditTitle = "<img src='" + VatLid.Variables.sWebRoot + "images/Edit.gif' border=0 title='Sửa, cập nhật' WIDTH='16' HEIGHT='16'></img>";
        public static string RenameTitle = "<img src='" + VatLid.Variables.sWebRoot + "images/copy.gif' border=0 title='Rename' WIDTH='16' HEIGHT='16' ></img>";
        public static string DeleteTitle = "<img src='" + VatLid.Variables.sWebRoot + "images/delete.gif' border=0 title='Xóa mục' WIDTH='16' HEIGHT='16' ></img>";
        public static string ViewItem = "<img src='" + VatLid.Variables.sWebRoot + "images/viewmag-.png' border=0 title='Xem' WIDTH='16' HEIGHT='16'></img>";
        public static string AddItem = "<img src='" + VatLid.Variables.sWebRoot + "images/Add-icon.png' border=0 title='Thêm ' WIDTH='16' HEIGHT='16'></img>";
        public static string listItem = "<img src='" + VatLid.Variables.sWebRoot + "images/Add-icon.png' border=0 title='Danh sách ' WIDTH='16' HEIGHT='16'></img>";
        public static string Log = "<img src='" + VatLid.Variables.sWebRoot + "images/undocheckout.gif' border=0 title='Log' WIDTH='16' HEIGHT='16'></img>";

        public static string sAddressIP = ConfigurationSettings.AppSettings["AddressIP"];

        public static string ViewLog = "../images/viewmag-.png";		
	}

    public class LogType
    {
        public static int DELETE = 1;
        public static int ADD = 2;
        public static int UPDATE = 3;
        public static int PUBLISH = 4;
        public static int UNPUBLISH = 5;
        public static int CHANGE_CATEGORY = 6;
        public static int MOVE_BOX = 7;
        public static int SET_PUBLISH_SCHEDULE = 8;
        public static int SET_TOPCATE = 9;
        public static int SET_NEW = 10;
        public static int SET_IMAGE = 11;
        public static int SET_TOP = 12;
        public static int CHANGE_TO_PERSON = 13;
        public static int CHANGE_TO_EVENT = 14;
        public static int SET_WEEK1 = 15;
        public static int SET_WEEK3 = 16;
        public static int SET_EVENT1 = 17;
        public static int SET_EVENT2 = 18;
        public static int CHANGE_TO_WC = 19;
        public static int CHANGE_TO_DI = 20;
        public static int CHANGE_TO_FASHION = 21;
        public static int GET_POST = 22;
        public static int NOUSER = 23;
        public static int EDIT = 24;
        public static int REJECT = 25;
        public static int CHANGE_TO_DI_NEW = 26;
        public static int SHOW_SENTENCE = 27;
        public static int UNPUBLISHLONGMESSAGE = 28;
        public static int PUBLISHLONGMESSAGE = 29;
        public static int DELETELONGMESSAGE = 30;
        public static int HIDELONGMESSAGE = 31;
        public static int SET_LONG_MESSAGE = 32;
        public static int PUBLISH_OK = 33;
        public static int AWAITPUBLISH_OK = 34;
        public static int AWAIT1PUBLISH_OK = 35;
        public static int DELETEPUBLISH_OK = 36;
        public static int RELATE_PERSONHISTORY = 37;
        public static int RECOVERY = 38;
        public static int ImageSlideShow = 39;
        public static int CateVideo = 40;
        public static int isOpen = 41;
        public static int Fashion = 42;
        public static int DuyetAnhSacXuan = 43;
        public static int XoaAnhSacXuan = 44;
        public static int dutd = 45;
        
    }

    public class SystemLogType
    {
        public static string DELETE = "Xóa";
        public static string ADD = "Thêm mới";        
        public static string PUBLISH = "Duyệt";
        public static string UNPUBLISH = "Chờ duyệt";
        public static string EDIT = "Sửa";
        public static string DELETEALL = "Xóa hoàn toàn";
        public static string Authen = "Phân quyền truy cập";
        public static string AuthenFunc = "Phân quyền Thực hiện";
        public static string AuthenMenu = "Phân quyền Menu";
        public static string HOME = "Duyệt tin top";
        public static string Image = "Duyệt tin ảnh";
        public static string News = "Duyệt tin mới";
        public static string SlideShow = "Duyệt tin SlideShow";
        public static string PicFocus = "Duyệt tiêu điểm";
        public static string VIDEO = "Duyệt tin video";
        public static string BOX = "Chuyển tin BOX";
        public static string AWAITPUBLISH = "Chờ xuất bản";
        public static string AWAITPUBLISH1 = "Chờ xuất bản 1";
        public static string Postion = "Set vị trí";
        public static string UnPostion = "Xóa vị trí đặt tin";
        public static string IsOpen = "Mở và khóa tin bài";
        public static string Fashion = "Chuyển bài sang Fashion";
        public static string DuyetAnhSacXuan = "Duyệt ảnh Sắc Xuân";
        public static string XoaAnhSacXuan = "Xóa ảnh Sắc Xuân";
        public static string dutd = "Chuyển bài sang Đồ uống tiêu dùng";
    }
}
